var express=require('express');
var router=express.Router();

var guestManage=require('../controllers/guestManageCtl.js');
var GetListHtml=guestManage.GetListHtml;
var GetAddHtml=guestManage.GetAddHtml;
var AddGuest=guestManage.AddGuest;
var GetPageQuantity=guestManage.GetPageQuantity;//默认加载总页数
var FirstShow=guestManage.FirstShow;
var ShowPage=guestManage.ShowPage;
var FetchGuest=guestManage.FetchGuest;
var GetBaseInfoHtml=guestManage.GetBaseInfoHtml;
var GetTiNengHtml=guestManage.GetTiNengHtml;

var MohuName=guestManage.MohuName;
var SearchCondition=guestManage.SearchCondition;
// FirstShowPrePlan=guestManage.FirstShowPrePlan;

//更新基本注册信息
var UpdateGuestBase=guestManage.UpdateGuestBase;
var FetchGuestTiNeng=guestManage.FetchGuestTiNeng;

var UpdateTiNeng=guestManage.UpdateTiNeng;
var WechatLogin=guestManage.WechatLogin;

var FetchGuestBase=guestManage.FetchGuestBase;

router.get('/',GetListHtml);
router.get('/list',GetListHtml);
router.get('/add',GetAddHtml);
router.post('/addGuest',AddGuest);

router.get('/getPageQuantity',GetPageQuantity);//默认加载总页数
router.get('/firstShow',FirstShow);
router.post('/showPage',ShowPage);

router.post('/fetchGuest',FetchGuest);//

router.get('/guestBaseInfo',GetBaseInfoHtml);
router.get('/guestTiNeng',GetTiNengHtml);
// router.get('/add');
// router.post();


router.post('/mohuName',MohuName);

router.post('/searchCondition',SearchCondition);

router.post('/updateGuestBase',UpdateGuestBase);
router.post('/fetchGuestTiNeng',FetchGuestTiNeng);

router.post('/updateTiNeng',UpdateTiNeng);

router.post('/wechatLogin',WechatLogin);

router.post('/fetchGuestBase',FetchGuestBase);

module.exports=router;
